c# get random double in range

40

c# get random double in range -

public double GetRandomNumber(double minimum, double maximum)
{ 
    Random random = new Random();
    return random.NextDouble() * (maximum - minimum) + minimum;
}

Comments

Submit
0 Comments